package com.autumn.zero.workflow.application.dto.forms;

import java.util.Date;

import com.autumn.common.api.constants.BasiscArchivesStatusConstant;
import com.autumn.common.api.domain.entities.auditing.IGmtCreate;
import com.autumn.common.api.domain.entities.auditing.IGmtModified;
import com.autumn.util.excel.annotations.ExcelColumn;

/**
 * 工作流输出
 * 
 * @author 杨昌国 2018-12-20 10:03:55
 */
public class WorkflowFormOutput extends WorkflowFormDto implements IGmtCreate, IGmtModified {

	/**
	 * 
	 */
	private static final long serialVersionUID = -826786646538244826L;

	private Date gmtCreate;
	private Date gmtModified;

	private Integer status;

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * 获取状态名称
	 * 
	 * @return
	 */
	@ExcelColumn(order = 10, friendlyName = "状态名称", width = 60)
	public String getStatusName() {
		return BasiscArchivesStatusConstant.getName(this.getStatus());
	}

	@Override
	public Date getGmtCreate() {
		return gmtCreate;
	}

	@Override
	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	@Override
	public Date getGmtModified() {
		return gmtModified;
	}

	@Override
	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

}
